id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Boolean Expressionsandor4

prev  |  next  |  chance

The not operator flips a boolean value.

def andor4(val1, val2):
    result = not (val1 or val2)
    return result
Function Call  Return Value
andor4(True, True)
andor4(True, False)
andor4(False, True)
andor4(False, False)

Experiment with this code on Gitpod.io

⬅ Back